
include_directories( ${ENGINE_COMMON_INCLUDES}
                     ../../dbcon/mysql )
                     
########### next target ###############

set(regr_LIB_SRCS regr_avgx.cpp regr_avgy.cpp regr_count.cpp regr_slope.cpp regr_intercept.cpp regr_r2.cpp corr.cpp regr_sxx.cpp regr_syy.cpp regr_sxy.cpp covar_pop.cpp covar_samp.cpp)

add_definitions(-DMYSQL_DYNAMIC_PLUGIN)

add_library(regr SHARED ${regr_LIB_SRCS} )

set_target_properties(regr PROPERTIES VERSION 1.1.0 SOVERSION 1)

install(TARGETS regr DESTINATION ${ENGINE_LIBDIR} COMPONENT libs)



set(regr_mysql_LIB_SRCS regrmysql.cpp)

add_library(regr_mysql SHARED ${regr_mysql_LIB_SRCS})

set_target_properties(regr_mysql PROPERTIES VERSION 1.0.0 SOVERSION 1)

install(TARGETS regr_mysql DESTINATION ${ENGINE_LIBDIR} COMPONENT storage-engine)

